import { Label } from 'cc';
import { _decorator, Component, Node } from 'cc';
import LangDataInstance from './LangDataInstance';
const { ccclass, property } = _decorator;

@ccclass('LabelItem')
export class LabelItem extends Component {
    protected onLoad(): void {
        let node_label = this.node.getComponent(Label);
        node_label.string = LangDataInstance.GetInstance().GetLangStringByTitle(node_label.string);
    }
    start() {
        console.log(`lanshow:${this.getComponent(Label).string}`);
    }
}
